<?php

namespace app\common\model;

class ArticleContent extends \think\Model
{
    protected $table = 'db_article_content';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'pubid' => 'varchar',
        'sort' => 'int',
        'name' => 'text',
        'article_id' => 'int',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型article
     */
    public function article()
    {
        return $this->belongsTo(Article::class );
    }
}
